<%@ page language="java" contentType="text/html; charset=utf-8"
         pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
<html>
<head>
    <title>药品信息添加</title>
    <link href="<%=basePath%>css/style.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath%>css/select.css" rel="stylesheet" type="text/css" />
    <link href="<%=basePath%>css/bootstrap.min.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>js/select-ui.min.js"></script>
    <script type="text/javascript" src="<%=basePath%>js/rl.js"></script>
    <script type="text/javascript">
        $(function(){
            $('tbody tr:odd').addClass("trLight");
            $(".select-all").click(function(){
                if($(this).attr("checked")){
                    $(".checkBox input[type=checkbox]").each(function(){
                        $(this).attr("checked", true);
                    });
                }else{
                    $(".checkBox input[type=checkbox]").each(function(){
                        $(this).attr("checked", false);
                    });
                }
            });
        });
    </script>
    <style type="text/css">
        body {
            background:#FFF
        }
    </style>
</head>
<body>
<form method="post" action="<%=basePath%>drugsAddController" method="post" name="ThisForm">
    <div id="contentWrap">
        <!--表格控件 -->
        <div id="widget table-widget">
            <div class="pageTitle">药品添加</div>
            <div class="pageInfo">
                <label id="message">${success}</label>
                <table>
                    <tr>
                        <td width="20%" align="right">药品ID</td>
                        <td width="20%"><input type="text" id="drugsid" name="drugsid" /></td>
                        <td width="10%" align="right">药品名</td>
                        <td width="50%"><input type="text" id="name" name="name" /></td></td>
                    </tr>
                    <tr>
                        <td width="20%" align="right">单价</td>
                        <td width="20%"><input type="text" id="price" name="price" /></td>
                        <td width="10%" align="right">进价</td>
                        <td width="50%"><input type="text" id="purchaseprice" name="purchaseprice" /></td>
                    </tr>
                    <tr>
                        <td width="10%" align="right">库存数量</td>
                        <td width="50%"><input type="text" id="num" name="num" /></td>
                        <td width="10%" align="right">引入日期</td>
                        <td width="50%"><input type="text" id="introducedate" name="introducedate" onClick="SelectDate(this.name)"/></td>
                    </tr>
                    <tr>
                        <td width="20%" align="right">生产厂商</td>
                        <td width="20%"><input type="text" id="productunit" name="productunit" /></td>
                        <td width="10%" align="right">生产日期</td>
                        <td width="50%"><input type="text" id="productdate" name="productdate" onClick="SelectDate(this.name)"/></td>
                    </tr>
                    <tr>
                        <td width="20%" align="right">保质期</td>
                        <td width="20%"><input type="text" id="qualityperiod" name="qualityperiod" onClick="SelectDate(this.name)"/></td>
                        <td width="10%" align="right">供货单位</td>
                        <td width="50%"><input type="text" id="supplyunit" name="supplyunit" /></td>
                    </tr>
                    <tr>
                        <td colspan="4" align="center"><input type="submit" value="确定" /></td>
                    </tr>
                </table>
            </div>
        </div><!-- #widget -->
    </div>
</form>
</body>
</html>
